string(REGEX REPLACE ^[a-zA-Z]: "" REAL_INST_PREFIX "${CMAKE_INSTALL_PREFIX}")
add_custom_target(copy-fnt-files
	COMMAND "make" "-C" "${CMAKE_CURRENT_BINARY_DIR}/../../"
	"install" "DESTDIR=${CMAKE_CURRENT_BINARY_DIR}/temp"
	COMMAND "mkdir" "-p" "${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME_LONG}"
	COMMAND "cd" "${CMAKE_CURRENT_BINARY_DIR}/temp/${REAL_INST_PREFIX}"
	"&&" "cp" "-a" "*"
	"${CMAKE_SOURCE_DIR}/README.rst"
	"${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME_LONG}/"
	COMMENT "Copy program files"
	)

add_custom_target(create-zip
	COMMAND "rm" "-f" "${PACKAGE_NAME_LONG_LC}-${PACKAGE_VERSION}-win.zip"
	COMMAND "/bin/bash" "${CMAKE_CURRENT_SOURCE_DIR}/create-zip.sh"
	"${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME_LONG}"
	"${_qt5_install_prefix}/../../share/qt5"
	"${PACKAGE_NAME_LONG_LC}-${PACKAGE_VERSION}-win"
	COMMENT "Create zip file")
add_dependencies(create-zip copy-fnt-files)
